#-*-conding:utf-8-*-

"""

 Created by feiwo at 2018/7/31
 
"""
from app.models.Base import Base
from sqlalchemy import Column, String, ForeignKey, Integer
from sqlalchemy.orm import relationship

__author__ = 'feiwo'


class TagRel(Base):

    __tablename__ = 'tag_rel'

    article = relationship('Article')
    articleId = Column(Integer, ForeignKey('article.id'), nullable=False, name='article_id')
    tag = relationship('Tag')
    tagId = Column(Integer, ForeignKey('tag.id'), nullable=False, name='tag_id')
